x = 1234.56789
format(x,'0.2f')
format(x,'>10.1f') # 字符最右端距离左端宽10个字符
format(x, '^20.1f') # 总共宽20，居中
format(x, ',') # '1,234.56789 '
format(x, 'e')  # '1.234568e+03'
format(x, '0.2E') #'1.23E+03'

print('The value is {:^20,.2f}'.format(x))
print('The value is {:*^20,.2f}'.format(x))  # The value is ******1,234.57******